﻿using System;
using NiuX.Guids;

namespace NiuX
{
    /// <summary>
    /// ID 生成器
    /// </summary>
    public static class IdGenerator
    {
        public static SequentialGuidGenerator SequentialGuidGenerator { get; } = new(null!);

        public static Guid NextIdWithSequentialAsString() => SequentialGuidGenerator.Create(SequentialGuidType.SequentialAsString);

        public static Guid NextIdWithSequentialAtEnd() => SequentialGuidGenerator.Create(SequentialGuidType.SequentialAtEnd);

        public static Guid NextId(SequentialGuidType guidType) => SequentialGuidGenerator.Create(guidType);
    }
}